package com.myxml.myxml;

import java.util.ArrayList;
import java.util.List;
public class Channel {
	
	public Channel() {
		setCategories(new ArrayList<String>());
		setItems(new ArrayList<Item>());
	}
	
	public void setId(int id) {
		m_Id = id;
	}
	public int getId() {
		return m_Id;
	}

	public void setTitle(String title) {
		m_Title = title;
	}

	public String getTitle() {
		return m_Title;
	}

	public void setLink(String link) {
		m_Link = link;
	}

	public String getLink() {
		return m_Link;
	}

	public void setAddress(String Address) {
		m_Address = Address;
	}

	public String getAddress() {
		return m_Address;
	}

	public void setPubDate(long pubDate) {
		m_PubDate = pubDate;
	}

	public long getPubDate() {
		return m_PubDate;
	}

	public void setLastBuildDate(long lastBuildDate) {
		m_LastBuildDate = lastBuildDate;
	}

	public long getLastBuildDate() {
		return m_LastBuildDate;
	}

	public void setCategories(List<String> categories) {
		m_Categories = categories;
	}
	
	public void addCategory(String category) {
		m_Categories.add(category);
	}

	public List<String> getCategories() {
		return m_Categories;
	}

	public void setItems(List<Item> items) {
		m_Items = items;
	}
	
	public void addItem(Item item) {
		m_Items.add(item);
	}

	public List<Item> getItems() {
		return m_Items;
	}

	public void setImage(String image) {
		m_Image = image;
	}

	public String getImage() {
		return m_Image;
	}

	private int m_Id;
	private String m_Title;
	private String m_Link;
	private String m_Address;
	private long m_PubDate;
	private long m_LastBuildDate;
	private List<String> m_Categories;
	private List<Item> m_Items;
	private String m_Image;
}
